
// 手机号码验证规则
export const verifyPhone = (phone) => {
    return /^(\+86)?1(3\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\d|9[0-35-9])\d{8}$/.test(phone)
}

// 密码验证规则
export const verifyPassword = (password) => {
    return /^\w{4,20}$/.test(password)
}